#pragma once
#include"M_S_Hash.h"


template <class K>
class unordered_set{
public:

	struct MySetKey{
		const K& operator()(const K& key)
		{
			return key;
		}
	};
public:
	typedef typename cxy::OpHash<K, K, MySetKey>::iterator iterator;

	iterator begin()
	{
		return ht.begin();
	}
	iterator end()
	{
		return ht.end();
	}
	pair<iterator,bool> Insert(const K& key)
	{
		return ht.Insert(key);
	}
	

private:
	cxy::OpHash<K, K, MySetKey> ht;
};